package model.mapping;

import java.io.Serializable;

import model.Model;

public class TrafficLight implements Serializable {

	private int state;
	
	public TrafficLight() {
	
		state = Model.LightStates.GREEN.ordinal();
	}
	
	public TrafficLight(int current) {
		
		state = current;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}
}
